package com.miao.elm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.miao.elm.entity.DeliveryaddressEntity;
import com.miao.elm.to.DeliveryAddressTo;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2022-11-01 11:53:46
 */
public interface DeliveryaddressService extends IService<DeliveryaddressEntity> {

    List<DeliveryaddressEntity> listDeliveryAddressByUserId(String userId);

    DeliveryaddressEntity getDeliveryAddressById(Integer daId);

    int saveDeliveryAddress(DeliveryAddressTo deliveryAddressTo);

    int updateDeliveryAddress(DeliveryAddressTo deliveryAddressTo);

    int removeDeliveryAddress(Integer daId);
}

